package edu.unr.cater.npap.server.locator;

import com.google.web.bindery.requestfactory.shared.Locator;
import edu.unr.cater.npap.client.domain.TransportationImprovementProject;
import org.springframework.roo.addon.gwt.RooGwtLocator;
import org.springframework.stereotype.Component;

@RooGwtLocator("edu.unr.cater.npap.client.domain.TransportationImprovementProject")
@Component
public class TransportationImprovementProjectLocator extends Locator<TransportationImprovementProject, Integer> {

    public TransportationImprovementProject create(Class<? extends edu.unr.cater.npap.client.domain.TransportationImprovementProject> clazz) {
        return new TransportationImprovementProject();
    }

    public TransportationImprovementProject find(Class<? extends edu.unr.cater.npap.client.domain.TransportationImprovementProject> clazz, Integer id) {
        return TransportationImprovementProject.findTransportationImprovementProject(id);
    }

    public Class<edu.unr.cater.npap.client.domain.TransportationImprovementProject> getDomainType() {
        return TransportationImprovementProject.class;
    }

    public Integer getId(TransportationImprovementProject transportationImprovementProject) {
        return transportationImprovementProject.getProjectId();
    }

    public Class<java.lang.Integer> getIdType() {
        return Integer.class;
    }

    public Object getVersion(TransportationImprovementProject transportationImprovementProject) {
        return transportationImprovementProject.getVersion();
    }
}
